<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>获得浏览器的信息</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<script type="text/javascript" src="myjs/string.js" ></script>
		<script type="text/javascript" src="myjs/encode.js" ></script>
		<script type="text/javascript">
			//alert("2005a-02-25".isTime());
			//alert("2005-05-21 20:23:25".isDateTime());
			/*
			var now = new Date;
			alert(now.year);
			now.year = 2006;
			alert(now);
			*/
		</script>
		
	</head>
	<body>
	<script type="text/javascript">
	var test1="烦恼";
	var test2="%E7%83%A6%E6%81%BC";
	
	document.writeln("编码（原="+test1+"）："+encodeURIComponent(test1)+ "<br />");
	document.writeln("解码（原="+test2+"）："+decodeURIComponent(test2)+ "<br />");
	document.writeln("编码UTF8（原="+test1+"）："+test1.encodeUTF8()+ "<br />");
	document.writeln("解码UTF8（原="+test1.encodeUTF8()+"）："+test1.encodeUTF8().decodeUTF8()+ "<br />");
	document.writeln("编码GBK（原="+test1+"）："+test1.encodeGBK()+ "<br />");
	document.writeln("解码GBK（原="+test1.encodeGBK()+"）："+test1.encodeGBK().decodeGBK()+ "<br />");
	
	</script>
	</body>
</html>
